<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo ''?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo $this->set_css('managecp.css', 'admin');?>" type="text/css" media="all" />
<meta content="Comsenz Inc." name="Copyright" />
</head>
<body scroll="no">
<div class="container">
    <h3><a href="<?php echo $this->set_url('admin', 'sysmenu', 'index');?>">菜单列表</a> 添加菜单</h3>
 		<form action="<?php echo $this->set_url('admin', 'sysmenu', 'add', array('opt'=>!isset($opt)?'insert':$opt));?>" method="post">
			<table class="datalist fixwidth" style="width:100%;">
				<tr>
					<td style="width:5px;">上级菜单：</td>
					<td align="left">
					<select name="parentid">
					<option value="0">第一级菜单</option>
					<?php foreach ($sysmenu_list as $key=>$val):?>
					<option value="<?php echo $val['id']?>" <?php if (isset($menu['id']) && $val['id'] == $menu['parentid']): ?>selected="selected"<?php endif;?>><?php echo $val['cname']?></option>
					<?php endforeach;?>
					</select>

					</td>
				</tr>
				<tr>
					<td style="width:5px;">中文语言名称：</td>
					<td align="left"><input type="text" id="cname" name="cname" value="<?php echo isset($menu['cname'])?$menu['cname']:'' ?>"></td>
				</tr>
				<tr>
					<td style="width:5px;">英文语言名称：</td>
					<td align="left"><input type="text" id="ename" name="ename"  value="<?php echo isset($menu['ename'])?$menu['ename']:'' ?>"></td>
				</tr>
				<tr>
					<td style="width:5px;">模块名(model)：</td>
					<td align="left"><input type="text" id="model" name="model" value="<?php echo isset($menu['model'])?$menu['model']:'' ?>"></td>
				</tr>
				<tr>
					<td style="width:5px;">文件名(controller)：</td>
					<td align="left"><input type="text" id="controller" name="controller" value="<?php echo isset($menu['controller'])?$menu['controller']:'' ?>"></td>
				</tr>
				<tr>
					<td style="width:5px;">方法名(action)：</td>
					<td align="left"><input type="text" id="action" name="action" value="<?php echo isset($menu['action'])?$menu['action']:'' ?>"></td>
				</tr>
				<tr>
					<td style="width:5px;">默认参数：</td>
					<td align="left"><input type="text" id="params" name="params" value="<?php echo isset($menu['params'])?$menu['params']:'' ?>"></td>
				</tr>
				<tr>
					<td style="width:5px;">是否显示：</td>
					<td align="left">
					<input type="radio" name="display" value="0" <?php if (isset($menu['display']) && $menu['display'] ==0):?>checked="checked"<?php endif;?>/>否
					<input type="radio" name="display" value="1" checked="checked" <?php if (isset($menu['display']) && $menu['display'] ==0):?>checked="checked"<?php endif;?>/>是
					</td>
				</tr>
				<tr class="nobg">
					<td>
					<input type="hidden" value="<?php echo isset($menu['id'])?$menu['id']:0?>" name="id"/>
					<input type="submit" value="提 交" class="btn" /></td>
				</tr>
				
			</table>
		</form>
    </div>
    
</div>
</body>
</html>
